import http from "@/http";
//新增数据类型
export type SysClass = {
    classId: string;
    majorId: string;
    className: string;
    years: string;
    calssNum: string;
    orderNum: string;
}
//分页参数
export type PageParm = {
    currentPage:number;
    pageSize:number;
    className:string;
    majorId:string;
    years:string;
}
//新增班级 
export const addApi = (parm:SysClass) => {
    return http.post("/api/sysClass",parm)
}
//班级列表
export const getListApi = (parm:PageParm)=>{
    return http.get("/api/sysClass/list",parm)
}
//编辑班级 
export const editApi = (parm:SysClass) => {
    return http.put("/api/sysClass",parm)
}
//删除
export const deleteApi = (classId:string)=>{
    return http.delete(`/api/sysClass/${classId}`)
}
//班级下拉列表
export const getSelectApi = ()=>{
    return http.get("/api/sysClass/select")
}